<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
	  
    </h:head>
    <body style="background: white;">
	  <f:view>
        <p:dataGrid var="student" value="#{CourseBean.target.STUDENTS}">
		<p:column sortBy="#{student.firstName}">
			  <h:form>
		    <h:panelGrid columns="2">
			  <h:graphicImage url="#{student.profilePicture}" width="70" height="70"/>
			  <p:commandLink value="#{student.fullName}" actionListener="#{HomePageBean.clickStudent()}" ajax="false">
				<f:setPropertyActionListener value="#{student}" target="#{StudentBean.target}"/>
			  </p:commandLink>
		    </h:panelGrid>
			  </h:form>
		</p:column>
	  </p:dataGrid>
	  </f:view>
    </body>
</html>
